home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Queries / PGetObjectIDInfo.h < prev    next >
C/C++ Source or Header  |  1996-07-12  |  2KB  |  79 lines

  1. /*
  2.  *--- PGetObjectIDInfo.h --------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:49 PM by Paul Ferguson.
  5.  *
  6.  * Description: This file contains templates for the queries
  7.  * that return a list of object ID information.  These queries
  8.  * are:
  9.  *
  10.  *    PGetObjectIDList
  11.  *    PGetObjectIDListTop
  12.  *    PGetSelectIDList
  13.  *    PGetSelectIDListTop
  14.  *    PGetGroupList (a special case because of its parameter)
  15.  *-------------------------------------------------------------------------
  16.  */
  17. #ifndef __PGetObjectIDInfo__
  18. #define __PGetObjectIDInfo__
  19.  
  20. #include "PListQuery.h"
  21.  
  22. class PGetObjectIDInfo : public PListQuery
  23. {
  24.  
  25. public:
  26.  
  27.     unsigned long    nObjectID;
  28.     unsigned long    nMaskID;
  29.     unsigned long    nGroupID;
  30.     short            nDrawNumber;
  31.     short            cTypeOfObject;
  32.     short            bTransformed;
  33.     short            bLinked;
  34.     long            xLeftOrStart;
  35.     long            yTopOrStart;
  36.     long            xRightOrEnd;
  37.     long            yBottomOrEnd;
  38.     long            xRightOrStart;
  39.     long            yTopOrStart2;
  40.     long            xLeftOrEnd;
  41.     long            yBotOrEnd2;
  42.     
  43. protected:
  44.     PGetObjectIDInfo();
  45.     PGetObjectIDInfo(ePMQuery op);
  46.  
  47.     virtual void    Scan();
  48. };
  49.  
  50. template <ePMQuery QUERY>
  51. class PGetObjID : public PGetObjectIDInfo
  52. {
  53.  
  54. public:
  55.  
  56.     PGetObjID() : PGetObjectIDInfo(QUERY) { }
  57. };
  58.     
  59. typedef PGetObjID<pm_getobjectidlist>        PGetObjectIDList;
  60. typedef PGetObjID<pm_getobjectidlisttop>    PGetObjectIDListTop;
  61. typedef PGetObjID<pm_getselectidlist>        PGetSelectIDList;
  62. typedef PGetObjID<pm_getselectidlisttop>    PGetSelectIDListTop;
  63.  
  64. class PGetGroupList : public PGetObjectIDInfo
  65. {
  66.  
  67. public:
  68.  
  69.     PGetGroupList(unsigned long nGroupID);
  70.  
  71. private:
  72.  
  73.     PGetGroupList();
  74. };
  75.  
  76. #endif
  77.  
  78. // end of PGetObjectIDInfo.h
  79.